aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
committerLorenz Diener <[email protected]>2018-04-18 22:07:03 +0200
commitbc7b9defe8b72b6ab14ade6828a98f4d6e82b1de (patch)
tree6cd17b03100aa61c1d0a224771577601a1851f59 /tests/cassettes/test_status_post[Content warning-None].yaml
parent64ec9e20987072692227d8817d9fd99d497fea5e (diff)
downloadmastodon.py-bc7b9defe8b72b6ab14ade6828a98f4d6e82b1de.tar.gz
Attempt 2 at fixing the tests for travis
Diffstat (limited to 'tests/cassettes/test_status_post[Content warning-None].yaml')
-rw-r--r--tests/cassettes/test_status_post[Content warning-None].yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/cassettes/test_status_post[Content warning-None].yaml b/tests/cassettes/test_status_post[Content warning-None].yaml
index 24f3623..51f8927 100644
--- a/tests/cassettes/test_status_post[Content warning-None].yaml
+++ b/tests/cassettes/test_status_post[Content warning-None].yaml
@@ -56,4 +56,61 @@ interactions:
56 X-XSS-Protection: [1; mode=block] 56 X-XSS-Protection: [1; mode=block]
57 content-length: ['2'] 57 content-length: ['2']
58 status: {code: 200, message: OK} 58 status: {code: 200, message: OK}
59- request:
60 body: status=Toot%21&spoiler_text=Content+warning
61 headers:
62 Accept: ['*/*']
63 Accept-Encoding: ['gzip, deflate']
64 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
65 Connection: [keep-alive]
66 Content-Length: ['43']
67 Content-Type: [application/x-www-form-urlencoded]
68 User-Agent: [python-requests/2.9.1]
69 method: POST
70 uri: http://localhost:3000/api/v1/statuses
71 response:
72 body: {string: '{"id":"99882235398794639","created_at":"2018-04-18T20:06:01.087Z","in_reply_to_id":null,"in_reply_to_account_id":null,"sensitive":true,"spoiler_text":"Content
73 warning","visibility":"public","language":"ja","uri":"http://localhost:3000/users/mastodonpy_test/statuses/99882235398794639","content":"\u003cp\u003eToot!\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test/99882235398794639","reblogs_count":0,"favourites_count":0,"favourited":false,"reblogged":false,"muted":false,"pinned":false,"reblog":null,"application":{"name":"Mastodon.py
74 test suite","website":null},"account":{"id":"1234567890123456","username":"mastodonpy_test","acct":"mastodonpy_test","display_name":"John
75 Lennon","locked":true,"created_at":"2018-04-18T20:04:06.511Z","note":"\u003cp\u003eI
76 walk funny\u003c/p\u003e","url":"http://localhost:3000/@mastodonpy_test","avatar":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","avatar_static":"http://localhost:3000/system/accounts/avatars/123/456/789/012/345/original/mastodonpyupload_.jpe","header":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","header_static":"http://localhost:3000/system/accounts/headers/123/456/789/012/345/original/mastodonpyupload_.jpe","followers_count":0,"following_count":0,"statuses_count":21},"media_attachments":[],"mentions":[],"tags":[],"emojis":[]}'}
77 headers:
78 Cache-Control: ['max-age=0, private, must-revalidate']
79 Content-Type: [application/json; charset=utf-8]
80 ETag: [W/"c7a6f1584acac04c171a4a6286f6b616"]
81 Transfer-Encoding: [chunked]
82 Vary: ['Accept-Encoding, Origin']
83 X-Content-Type-Options: [nosniff]
84 X-Frame-Options: [SAMEORIGIN]
85 X-Request-Id: [a056f2fb-b3a5-4e8b-bbd4-0eb5ff0c92b9]
86 X-Runtime: ['0.392034']
87 X-XSS-Protection: [1; mode=block]
88 content-length: ['1411']
89 status: {code: 200, message: OK}
90- request:
91 body: null
92 headers:
93 Accept: ['*/*']
94 Accept-Encoding: ['gzip, deflate']
95 Authorization: [Bearer __MASTODON_PY_TEST_ACCESS_TOKEN]
96 Connection: [keep-alive]
97 Content-Length: ['0']
98 User-Agent: [python-requests/2.9.1]
99 method: DELETE
100 uri: http://localhost:3000/api/v1/statuses/99882235398794639
101 response:
102 body: {string: '{}'}
103 headers:
104 Cache-Control: ['max-age=0, private, must-revalidate']
105 Content-Type: [application/json; charset=utf-8]
106 ETag: [W/"44d15761b8148d9596549fea3948dfbe"]
107 Transfer-Encoding: [chunked]
108 Vary: ['Accept-Encoding, Origin']
109 X-Content-Type-Options: [nosniff]
110 X-Frame-Options: [SAMEORIGIN]
111 X-Request-Id: [92e6b906-73b4-46c2-b7cb-f4f0aa0bff90]
112 X-Runtime: ['0.117121']
113 X-XSS-Protection: [1; mode=block]
114 content-length: ['2']
115 status: {code: 200, message: OK}
59version: 1 116version: 1
Powered by cgit v1.2.3 (git 2.41.0)